﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace BPM.Web.Shared.Data;

/// <summary>
/// 更新用户基本信息
/// </summary>
public partial class UpdateUserBaseInfoInput : BaseVM
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [DisplayName("业务号")]
    [Required(ErrorMessage = "业务号不能为空")]
    [JsonPropertyName("id")]
    public long Id { get; set; }

    [JsonPropertyName("nickName")]
    [Required(ErrorMessage = "不能为空")]
    public string? NickName { get; set; }

    [JsonPropertyName("phone")]
    [Required(ErrorMessage = "不能为空")]
    public string? Phone { get; set; }

    [JsonPropertyName("email")]
    [Required(ErrorMessage = "不能为空")]
    public string? Email { get; set; }

    [JsonPropertyName("sex")]
    public int Sex { get; set; }

    [JsonPropertyName("birthday")]
    [Required(ErrorMessage = "不能为空")]
    public System.DateTimeOffset? Birthday { get; set; }

    [JsonPropertyName("tel")]
    public string? Tel { get; set; }

}
